seajs.config({
	site: "./",
	base: "./assets/js/",
    devInterface: "http://101.200.184.33:8080/v1/",
	alias: {
		// lib
		"jquery":			"libs/jquery.min",
		"preloadjs":		"libs/preloadjs.min",
		"easing": 			"libs/jquery.easing",
		"mousewheel": 		"libs/jquery.mousewheel",
		"jscrollpane": 		"libs/jquery.jscrollpane",
		"fancybox": 		"libs/fancybox/jquery.fancybox.pack",
		"jcookie":			"libs/jquery.cookie",
		"bootstrap":		"libs/bootstrap.min",
		"highstock":		"libs/highstock", //图表库
		"exporting":		"libs/exporting", //图表库导出插件，可选
		"jquerytmpl":		"libs/jquery.tmpl.min", //jquery tmpl 插件
		"switch":			"libs/bootstrap-switch.min", //jquery bootstrap switch 插件

		// apps
		"basic": 			"apps/basic", //基础格式判断,全局require
		"config": 			"apps/config", //接口路基的配置文件
		"main":				"apps/main", // get/set DC, 加载页面相应的js文件, show命令历史，主导航高亮
		"buildcharts":		"apps/buildcharts",
		"user":     		"apps/user",
		"login": 			"apps/login",
		"createproject":    "apps/createproject",
		"index": 			"apps/index",
		"pool": 			"apps/pool",
		"intranet": 		"apps/intranet",
		"extranet": 		"apps/extranet",
		"project": 			"apps/project",
		"warehouse": 		"apps/warehouse"

	}
});

define(function(require, exports, module) {
	require('jquery');
	require('basic');
	if($('body').data('page')!='login'){
		seajs.use('user');
	}else{
		seajs.use('login');
	};
});
